package com.liuzu.esys.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SettlementBo {

    @ExcelProperty(value = "订单号")
    private Integer order_number;

    @ExcelProperty(value = "商品id")
    private Integer id;

    @ExcelProperty(value = "商品名称")
    private String name;

    @ExcelProperty(value = "商品单价")
    private Double price;

    @ExcelProperty(value = "购买数量")
    private Integer buy_num;

    @ExcelProperty(value = "实际支付金额")
    private Double pay_money;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "结算时间")
    private Date settlement_date;

    @ExcelProperty(value = "结算状态")
    private Boolean settlement_status;
}
